home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / winsock / serweb03.zip / SERWEDOC.H < prev    next >
C/C++ Source or Header  |  1993-09-30  |  1KB  |  45 lines

  1. // serwedoc.h : interface of the CSerwebDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. const MAX_LINES = 100;                        //How many lines to allow
  6.  
  7. class CSerwebDoc : public CDocument
  8. {
  9. protected: // create from serialization only
  10.     CSerwebDoc();
  11.     DECLARE_DYNCREATE(CSerwebDoc)
  12.     CSize m_sizeDoc;
  13.  
  14. // Attributes
  15. public:
  16.   CSize GetDocSize() {return m_sizeDoc;}  
  17.   void  SetDocSize(int xval, int yval) {m_sizeDoc.cx = xval; m_sizeDoc.cy = yval;}
  18.  
  19. // Operations
  20. public:
  21.   CString data_string[MAX_LINES];
  22.   long line_number, column_number;
  23.  
  24. // Implementation
  25. public:
  26.     virtual ~CSerwebDoc();
  27.     virtual void Serialize(CArchive& ar);    // overridden for document i/o
  28. #ifdef _DEBUG
  29.     virtual    void AssertValid() const;
  30.     virtual    void Dump(CDumpContext& dc) const;
  31. #endif
  32. protected:
  33.     virtual    BOOL    OnNewDocument();
  34.  
  35. // Generated message map functions
  36. protected:
  37.     //{{AFX_MSG(CSerwebDoc)
  38.         // NOTE - the ClassWizard will add and remove member functions here.
  39.         //    DO NOT EDIT what you see in these blocks of generated code !
  40.     //}}AFX_MSG
  41.     DECLARE_MESSAGE_MAP()
  42. };
  43.  
  44. /////////////////////////////////////////////////////////////////////////////
  45.